﻿namespace CRM.DataAccess.DAOs
{
    using System.Collections.Generic;
    using System.Data.Entity;
    using CRM.DataAccess.Entities;
    using System.Linq;

    public class DeliveryNoteDAO : DbContext
    {
        public DeliveryNoteDAO()
            : base("name=Entities")
        {            
        }
        public DbSet<DELIVERY_NOTE> DELIVERY_NOTE { get; set; }
        public DbSet<ITEM> ITEMS { get; set; }
        public DbSet<ITEM_DETAIL> ITEM_DETAILS { get; set; }

        //Add New Delivery Note
        public int AddNewDeliveryNote()
        {
            try
            {
                
                return 1;
            }
            catch
            {
                return -1;
            }
        }       
    }
}
